﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace FormatD.TimeManager.Domain
{
    public class RepositoryFactory
    {
        private static IRepository instance = null;
        public static IRepository Instance
        {
            get
            {
                if (instance == null)
                {
                    Assembly asm = Assembly.Load("Repository.dll");
                    Object obj = asm.CreateInstance("FormatD.TimeManager.Repository.TimeContext", true);
                }
                return instance;
            }
        }
    }
}
